function foo(a, b = 1, c) {
  console.log(arguments.length);
}
foo(1, 2, 3, 4);
foo(1);
console.log(foo.length);
